package com.google.android.gms.common.api.internal;

import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.lang.ref.WeakReference;
import java.util.Map;
import java.util.Map.Entry;
import java.util.WeakHashMap;
import o.aoq;
import o.ds;

public final class zzd extends Fragment implements aoq {
    private static WeakHashMap<FragmentActivity, WeakReference<zzd>> ˏ = new WeakHashMap();
    private Map<String, LifecycleCallback> ˊ = new ds();
    private Bundle ˋ;
    private int ॱ = 0;

    public final void ˏ(Bundle bundle) {
        super.ˏ(bundle);
        this.ॱ = 1;
        this.ˋ = bundle;
        for (Entry entry : this.ˊ.entrySet()) {
            ((LifecycleCallback) entry.getValue()).ˎ(bundle != null ? bundle.getBundle((String) entry.getKey()) : null);
        }
    }

    public final void ag_() {
        super.ag_();
        this.ॱ = 2;
        for (LifecycleCallback ˎ : this.ˊ.values()) {
            ˎ.ˎ();
        }
    }

    public final void ˌ() {
        super.ˌ();
        this.ॱ = 3;
        for (LifecycleCallback ˋ : this.ˊ.values()) {
            ˋ.ˋ();
        }
    }

    public final void ॱ(int i, int i2, Intent intent) {
        super.ॱ(i, i2, intent);
        for (LifecycleCallback ˊ : this.ˊ.values()) {
            ˊ.ˊ(i, i2, intent);
        }
    }

    public final void ˋ(Bundle bundle) {
        super.ˋ(bundle);
        if (bundle != null) {
            for (Entry entry : this.ˊ.entrySet()) {
                Bundle bundle2 = new Bundle();
                ((LifecycleCallback) entry.getValue()).ॱ(bundle2);
                bundle.putBundle((String) entry.getKey(), bundle2);
            }
        }
    }

    public final void ʼ() {
        super.ʼ();
        this.ॱ = 4;
        for (LifecycleCallback ॱ : this.ˊ.values()) {
            ॱ.ॱ();
        }
    }

    public final void ˎˎ() {
        super.ˎˎ();
        this.ॱ = 5;
        for (LifecycleCallback ˊ : this.ˊ.values()) {
            ˊ.ˊ();
        }
    }

    public final void ˎ(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) {
        super.ˎ(str, fileDescriptor, printWriter, strArr);
        for (LifecycleCallback ˋ : this.ˊ.values()) {
            ˋ.ˋ(str, fileDescriptor, printWriter, strArr);
        }
    }
}
